package com.ruoyi.ora.domain;

import java.math.BigDecimal;
import java.util.Date;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户交易对象 ora_transaction
 * 
 * @author liuwp
 * @date 2024-11-14
 */
public class Transaction extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 交易类型 */
    @Excel(name = "交易类型", dictType = "ora_transcaction_type")
    private Integer tranType;

    /** 交易金额 */
    @Excel(name = "交易金额")
    private BigDecimal tranFee;

    /** 余额 */
    @Excel(name = "余额")
    private BigDecimal balance;

    /** 关联订单id */
    @Excel(name = "关联订单id")
    private Long orderId;

    /** 消费的id */
    @Excel(name = "消费的id")
    private Long assetsId;

    /** 乐观锁 */
    @Excel(name = "乐观锁")
    private String optimismLock;

    private String tranTitle;
    private Date startTime;
    private Date endTime;
    private String currency;
    private Integer status;

    public String getTranTitle() {
        return tranTitle;
    }

    public void setTranTitle(String tranTitle) {
        this.tranTitle = tranTitle;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public String getCurrency() {
        return currency;
    }

    public void setCurrency(String currency) {
        this.currency = currency;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setTranType(Integer tranType) 
    {
        this.tranType = tranType;
    }

    public Integer getTranType() 
    {
        return tranType;
    }
    public void setTranFee(BigDecimal tranFee) 
    {
        this.tranFee = tranFee;
    }

    public BigDecimal getTranFee() 
    {
        return tranFee;
    }
    public void setBalance(BigDecimal balance) 
    {
        this.balance = balance;
    }

    public BigDecimal getBalance() 
    {
        return balance;
    }
    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }
    public void setAssetsId(Long assetsId) 
    {
        this.assetsId = assetsId;
    }

    public Long getAssetsId() 
    {
        return assetsId;
    }
    public void setOptimismLock(String optimismLock) 
    {
        this.optimismLock = optimismLock;
    }

    public String getOptimismLock() 
    {
        return optimismLock;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("tranType", getTranType())
            .append("tranFee", getTranFee())
            .append("balance", getBalance())
            .append("createTime", getCreateTime())
            .append("orderId", getOrderId())
            .append("assetsId", getAssetsId())
            .append("remark", getRemark())
            .append("optimismLock", getOptimismLock())
            .toString();
    }
}
